home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
program
/
515
/
rcs5ap1s.lzh
/
CONF.HEG
< prev
next >
Wrap
Text File
|
1991-01-10
|
4KB
|
107 lines
/* example RCS compile-time configuration */
/* $Id: conf.heg,v 1.1 90/11/01 05:03:27 eggert Exp $ */
/*
* This is an example RCS compile-time configuration.
* If you can't get conf.sh to work as described in the Makefile,
* copy this file to conf.h and edit conf.h by hand.
*/
#define exitmain(n) return n /* how to exit from main() */
#if !MAKEDEPEND
# include <stdio.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <fcntl.h>
# include <limits.h>
# include <stdlib.h>
# include <string.h>
# include <unistd.h>
/* #include <vfork.h> does not work. */
#endif /* !MAKEDEPEND */
#define has_sys_dir_h 0 /* Does #include <sys/dir.h> work? */
#define has_sys_param_h 0 /* Does #include <sys/param.h> work? */
#define has_sys_wait_h 1 /* Does #include <sys/wait.h> work? */
/* #define const */ /* The 'const' keyword works. */
/* #define volatile */ /* The 'volatile' keyword works. */
/* typedef int gid_t; */ /* Standard headers define gid_t. */
/* typedef int mode_t; */ /* Standard headers define mode_t. */
/* typedef int pid_t; */ /* Standard headers define pid_t. */
/* typedef int sig_atomic_t; */ /* Standard headers define sig_atomic_t. */
/* typedef int size_t; */ /* Standard headers define size_t. */
/* typedef long time_t; */ /* Standard headers define time_t. */
/* typedef int uid_t; */ /* Standard headers define uid_t. */
#define has_prototypes 1 /* Do function prototypes work? */
#if has_prototypes
# define P(params) params
# if !MAKEDEPEND
# include <stdarg.h>
# endif
# define vararg_start(ap,p) va_start(ap,p)
#else
# define P(params) ()
# if !MAKEDEPEND
# include <varargs.h>
# endif
# define vararg_start(ap,p) va_start(ap)
#endif
#define has_getuid 1 /* Does getuid() work? */
#define declare_getpwuid struct passwd *getpwuid P((uid_t));
#define has_rename 1 /* Does rename() work? */
#define bad_rename 0 /* Does rename(A,B) fail if B exists? */
#define VOID (void) /* 'VOID e;' discards the value of an expression 'e'. */
#define signal_type void /* type returned by signal handlers */
#define sig_zaps_handler 0 /* Must a signal handler reinvoke signal()? */
#define has_seteuid 1 /* Does seteuid() obey Posix 1003.1-1990? */
#define has_sigaction 1 /* Does struct sigaction work? */
#define has_sigblock 0 /* Does sigblock() work? */
#define has_sys_siglist 0 /* Does sys_siglist[] work? */
#define exit_type void /* type returned by exit() */
#define underscore_exit_type void /* type returned by _exit() */
typedef size_t fread_type; /* type returned by fread() and fwrite() */
typedef void *malloc_type; /* type returned by malloc() */
#define free_type void /* type returned by free() */
typedef size_t strlen_type; /* type returned by strlen() */
#define has_getcwd 1 /* Does getcwd() work? */
/* #define has_getwd ? */ /* Does getwd() work? */
#define has_vfork 0 /* Does vfork() work? */
#define has_vfprintf 1 /* Does vfprintf() work? */
#define CO "/usr/local/bin/co" /* name of 'co' program */
#define COMPAT2 0 /* Are version 2 files supported? */
#define DATEFORM "%.2d.%.2d.%.2d.%.2d.%.2d.%.2d" /* e.g. 01.01.01.01.01.01 */
#define DIFF "/bin/diff" /* name of 'diff' program */
#define DIFF_FLAGS , "-n" /* Make diff output suitable for RCS. */
#define DIFF_L 0 /* Does diff -L work? */
#define EXECRCS execv /* variant of execv() to use on subprograms */
#define MERGE "/usr/local/bin/merge" /* name of 'merge' program */
#define RCSDIR "RCS/" /* subdirectory for RCS files */
#define SLASH '/' /* path name separator */
#define TMPDIR "/tmp/" /* default directory for temporary files */
#define DIFF_PATH_HARDWIRED 1 /* Is DIFF absolute, not relative? */
#define ROOTPATH(p) ((p)[0]==SLASH)
#define RCSSEP ',' /* separator for RCSSUF */
#define SENDMAIL "/bin/mail" /* how to send mail */
#if 1 /* These agree with <stdio.h>. */
int fprintf P((FILE*,const char*,...));
int printf P((const char*,...));
# if has_vfprintf
int vfprintf P((FILE*,const char*,...));
# else
void _doprnt P((const char*,...));
# endif
#endif
char *sprintf P((char*,const char*,...));
int chmod P((const char*,mode_t));
int fcntl P((int,int,...));
int open P((const char*,int,...));
mode_t umask P((mode_t));
pid_t wait P((int*));
#ifndef O_CREAT
int creat P((const char*,mode_t));
#endif
#if has_seteuid
int setegid P((gid_t));
int seteuid P((uid_t));
#endif